/**
 * Copyright ©2012-2018 HopeHaiyang Corporation, All Rights Reserved
 * http://www.wuhanhope.com
 */
package hope.platform.data.server;

import hope.platform.data.domain.ObservedData;

import java.util.Date;
import java.util.List;

/**
 * class info
 *
 * @author hujia
 *         Create at 2018/7/6 15:48
 */
public interface ObservedDataService {
    ObservedData addObservedData(ObservedData observedData) throws Exception;

    List<ObservedData> getObservedDataBySerialNumberAndDataNameBetweenDataTime(String serialNumber,
                                                                               String dataName,
                                                                               Date beginTime,
                                                                               Date endTime);

    List<ObservedData> getObservedDataBetweenDataTime(Date beginTime, Date endTime);

    long countObservedDataBySerialNumberAndDataNameBetweenDataTime(String serialNumber,
                                                                   String dataName,
                                                                   Date beginTime,
                                                                   Date endTime);

    long countBySerialNumberAndDataTimeBetween(String serialNumber,
                                               Date beginTime,
                                               Date endTime);


}
